package guo;

import guo.dyn.JdkDyn;
import guo.obj.Customer;

public class Main {
    public static void main(String[] args) {

//  jdk代理
        Customer customer = new Customer();         //目标对象
        JdkDyn jdkDyn = new JdkDyn(customer) ;      //代理对象工厂
        Runnable proxy = (Runnable) jdkDyn.getProxy();  //接口接值  得到代理对象
        proxy.run();


    }
}